package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.feign.falllback.ProductFeignApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author zhenfeng
 * @Date 2021/5/13
 */
@FeignClient(name = "product-service", fallback = ProductFeignApiFallback.class)
public interface ProductFeignApi {

    @RequestMapping("/product/queryProductByIds")
    Result<List<Product>> queryProductByIds(@RequestBody List<Long> ids);
}
